package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {

    /**
     * 保存菜品和菜品口味
     * @param dishDto
     */
    public void saveDishWithFlavor(DishDto dishDto);

    /**
     * 获取菜品和菜品口味
     * @param id
     * @return
     */
    public DishDto getDishByIdWithFlavor(Long id);

    /**
     * 修改菜品和菜品口味信息
     * @param dishDto
     */
    public void updateDishWithFlavor(DishDto dishDto);

    /**
     * 删除菜品和菜品口味信息
     */
    public void deleteDishWithFlavor(List<Long> ids);
}
